Skip to content

Conversation

james-elicx
Copy link
Collaborator

@james-elicx james-elicx commented Feb 13, 2025

fixes #376

In some monorepo projects when running build there is a node_modules inside server-functions but not inside server-functions/{projectPath}.

This change to check for the existence of the package-scoped node_modules before choosing it over the non-package-scoped one.

Not quite sure how simple it would be to add an e2e for this because it's dependent on the monorepo structure and I believe it would be hit for us due to having multiple apps

Copy link

changeset-bot bot commented Feb 13, 2025

🦋 Changeset detected

Latest commit: 26b47bb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented Feb 13, 2025

Open in Stackblitz

pnpm add https://pkg.pr.new/@opennextjs/cloudflare@378

commit: 26b47bb

Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops forgot to approve!

Thanks James for the quick fix 🙏

@james-elicx james-elicx merged commit ad895ed into main Feb 13, 2025
7 checks passed
@james-elicx james-elicx deleted the james/fix-node-modules-vercel branch February 13, 2025 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] copyFile no such file node_modules/next/dist/compiled/@vercel/og/index.edge.js

2 participants